import dayJs from 'dayjs'

export const formattedDate = (time: any, str: string) => {
  return dayJs(new Date(time)).format(str);
}